<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{user.username|musical}} 's Watchlist</title>
</head>
<body>
    {% include '_banner.html' %}
    <a href="{{url_for('index')}}">&larr;返回</a>
    <h2>{{user.username|smiling}}</h2>
    {% if user.bio %}
        <i>{{user.bio}}</i>
    {% else %}
        <i>用户未提供任何经历信息</i>
    {% endif%}
    <h5>{{user.username}}'s watchlist({{movies|length}}):</h5>
    <ul>
        {% for movie in movies %}
            <li>{{movie.name}} - {{movie.year}}</li>
        {% endfor %}
    </ul>

    {# 过滤器的使用  #}
    {% filter upper%}
        {{user.username}}
    {% endfilter %}

    <div>{{user.username|upper}}</div>

    {# 自定义全局函数演示  #}
    <div>{{copyright()}}  <i>{{author.name}} / {{author.email}}</i>  </div>
</body>
</html>